home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
utility
/
day110.zip
/
DAY11.DOC
next >
Wrap
Text File
|
1992-10-18
|
2KB
|
47 lines
DAY11.DOC v1.1 Revised 10/18/92 change in DOW.EXE
Day/Week Tools
This is a set of utilities I wrote to deal with day of the week and
week of the month. I wanted to be able to run a backup file on Monday
and I wanted to run another program during the 2nd week of the month.
Paradox and dBASE vave day of the week functions, but sometimes it's
much tidier to work from a batch file. One of the applications I use
can be set to exit at a certain time with a unique exit code, I then
check for the right day, CALL BA.BAT to run the backup if it's the
right day, otherwise restart the application.
The programs included in this set are:
WDAY.COM Returns the day of the week (1-7)
DOW.EXE If day of week matches command line argument (1-7),
it returns 0, if not matched, returns 1.
If there is a second argument it also checks for
match of which weekday is of month.
Examples:
DOW 5 returns 0 if today is Thursday, 1 if not.
DOW 5 3 returns 0 it today is the third Thursday, 1 if not.
WOM.EXE Returns the week of the month (1-5)
WHICHDAY.BAT Demonstrates use of WDAY.COM to perform various
tasks depending on the day of the week.
Note that errorlevel checking should be done in a
descending sequence.
ISDAY.BAT Demonstrates use of DOW.EXE
WWEK.BAT Demonstrates use of WOM.EXE
This is shareware. If you find the programs useful, please send $10.00 to:
Bill Sorem (CompueServe 73730,644)
Computer Obedience School
4440 Chase Park Court
Anandale, VA 22003
703-354-4228
Thanks